﻿using MyDomain.Entity;
using System.ComponentModel.DataAnnotations;

namespace MyDomain.UserInfo
{
    /// <summary>
    /// 用户信息
    /// </summary>
    public class UserInfo : BaseEntity<int>
    {
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { set; get; }

        /// <summary>
        /// 邮箱
        /// </summary>
        [Required(ErrorMessage = "邮箱必填")]
        public string Email { set; get; }

        /// <summary>
        /// 密码
        /// </summary>
        [Required(ErrorMessage = "密码必填")]
        public string PassWord { set; get; }

        /// <summary>
        /// 头像
        /// </summary>
        public string Logo { set; get; }

        /// <summary>
        /// 是否锁定
        /// </summary>
        public bool IsLock { set; get; }

        /// <summary>
        /// 积分
        /// </summary>
        public int Points { set; get; }

        /// <summary>
        /// 城市
        /// </summary>
        public string City { set; get; }

        /// <summary>
        /// 等级
        /// </summary>
        public int Level { set; get; }

        /// <summary>
        /// 性别
        /// </summary>
        public int Sex { set; get; }

        /// <summary>
        /// 签名
        /// </summary>
        public string Signature { set; get; }
    }
}
